// 1. 引入
import Vue from 'vue'
import VueRouter from 'vue-router'
import index from '@/views/index.vue'
import Orders from '@/views/Orders.vue'
import Type from '@/views/Type.vue'
import My from '@/views/My.vue'
Vue.use(VueRouter)


const router = new VueRouter({
  routes: [
    {
      path: '/',
      redirect:'/index'
    },
    {
      path: '/index',
      component:index
    },
    {
      path: '/Orders',
      component:Orders
    },
    {
      path: '/Type',
      component:Type
    },
    {
      path: '/My',
      component:My
    }
  ]
})
// 对外暴露路由实例
export default router